package testPaperFavoritesPage;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;


/**
 * 自定义fragment适配器
 * @author WGL
 *
 */
public class FavoritesPagePaperFragmentAdapter extends FragmentStatePagerAdapter {
    public FavoritesPagePaperFragmentAdapter(FragmentManager fm) {
        super(fm);
    }
    @Override
    public int getCount() {
        return 1;
    }
    @Override
    public Fragment getItem(int position) {
        return FavoritesPagePaperFragment.newInstance(position);
    }

   /* @Override
    public int getItemPosition(Object object) {
        // 最简单解决 notifyDataSetChanged() 页面不刷新问题的方法
        return POSITION_NONE;
    }*/
}
